package com.yitong.base.domain;

public class JsonResponse {

	private boolean success;
	private String message;
	private Object result;

	public JsonResponse() {
	}

	public JsonResponse(boolean success) {
		this.success = success;
	}

	public JsonResponse(boolean success, Object result) {
		this.success = success;
		this.result = result;
	}
	
	public JsonResponse(boolean success, String message) {
		this.message = message;
		this.success = success;
	}

	public JsonResponse(boolean success, String message, Object result) {
		this.message = message;
		this.success = success;
		this.result = result;
	}

	public JsonResponse(Object result) {
		this(true, result);
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

}
